home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
windows
/
pwfax.zip
/
STARTUP.WAS
< prev
Wrap
Text File
|
1992-08-15
|
940b
|
24 lines
;STARTUP.WAS
#define FAX "WINFAX PRO Administrator" ; caption of Fax program window
proc main
string str
integer win
if strfind $lastmsg "Port in use" ; Fax may be using COM port
if activatewin FAX ; if able to activate Fax program...
win = $ACTIVEWIN ; handle of Fax program window
statmsg "Closing WINFAX PRO..." ; inform user
closewin win ; try to close Fax program
while iswindow win ; while Fax is still running...
pause 1 ; give Fax a chance to close
if iswindow win ; if Fax still running...
closewin win ; try again to close Fax
endif
endwhile
fetch connection type str ; COM was not initialized...
set connection type str ; so reinitialize the COM port
else ; couldn't activate Fax - let user handle the error
exit
endif
endif
endproc